package cn.darkhorse.mesadmin.controller.device;


import cn.darkhorse.device.pojo.MesMsgAudit;
import cn.darkhorse.device.service.MesMsgAuditService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 单据审核 前端控制器
 * </p>
 *
 * @author maoguanjun
 * @since 2023-02-07
 */
@RestController
@RequestMapping("/device/mesMsgAudit")
public class MesMsgAuditController extends BaseController {
    @Resource
    private MesMsgAuditService mesMsgAuditService;
    @RequestMapping(value = "/list",method = RequestMethod.POST)
    public TableDataInfo list(Long userId,Integer auditFlag){
        startPage();
        List<MesMsgAudit> list = mesMsgAuditService.list(userId, auditFlag);
        return getDataTable(list);
    }
}

